/*
 * @Author: Otway
 * @Date: 2019-01-09 11:16:08
 * @LastEditors: Otway
 * @LastEditTime: 2019-08-30 18:50:09
 * @copyright: h-visions
 */
import React, { PureComponent } from 'react';
import {
  Row,
  Col,
  Form,
  Input,
} from 'antd'; 
const FormItem = Form.Item;
const formItemLayout = {
  // 抽屉里面Form。二列的布局比例
  labelCol: {
    span: 6 
  },
  wrapperCol: {
    span: 18 
  }
};

class AddFrom extends PureComponent {
  render() {
    const {
      formData,
      form: { getFieldDecorator },
    } = this.props;
    return (
      <Form >
        <Row>
          <Col span={24}>
            <FormItem {...formItemLayout} label={'参数'}>
              {getFieldDecorator('ecnCode', {
                initialValue: formData.ecnCode || '',
                rules: [
                  {
                    required: true,
                    message: ''
                  }
                ]
              })(<Input />)}
            </FormItem>
          </Col>
          <Col span={24}>
          <FormItem {...formItemLayout} label={'参数'}>
              {getFieldDecorator('ecnCode', {
                initialValue: formData.ecnCode || '',
                rules: [
                  {
                    required: true,
                    message: ''
                  }
                ]
              })(<Input />)}
            </FormItem>
          </Col>
          <Col span={24}>
          <FormItem {...formItemLayout} label={'参数'}>
              {getFieldDecorator('ecnCode', {
                initialValue: formData.ecnCode || '',
                rules: [
                  {
                    required: true,
                    message: ''
                  }
                ]
              })(<Input />)}
            </FormItem>
          </Col>
          <Col span={24}>
            <FormItem {...formItemLayout} label={'参数'}>
              {getFieldDecorator('ecnCode', {
                initialValue: formData.ecnCode || '',
                rules: [
                  {
                    required: true,
                    message: ''
                  }
                ]
              })(<Input />)}
            </FormItem>
          </Col>
        </Row>
      </Form>
    );
  }
}

export default Form.create()(AddFrom);
